<#assign title=S("分类", column.category.label, "的", column.columnType.code ,"字段", column.label)/>
<@console title=title>
	${title}
	<br>
	<a href="${URL('console/category/',column.category.ID)}">回到分类目录${column.category.label}</a>
	<br>
	<@info/>
	<@warn/>
	
	<@form action="console/column/save/${S(column.ID)}">
		<@hidden f="column.type"/>
		<@hidden f="column.categoryId"/>
		名称:<@input f="column.label"/><@warn f="column.label"/><br>
		编号:<@input f="column.code"/><@warn f="column.code"/><br>
		顺序:<@input f="column.idx"/><@warn f="column.idx"/><br>
		<br>
		数据类型:<select name="column.valuetypeId">
		<#list Valuetypes.all as vt>
			<@option f="column.valuetypeId" v=vt.ID>${vt.label}:${vt.code}</@option>
		</#list>
		</select>
		<br>
		缺省值:<@input f="column.defaultValue"/><br>
		宽度:<@input f="column.displaySize"/><br>
		<br>
		可视:<#list Columns.visibleTypes as vt>
				<@radio f="column.visibleType" v=vt.value>${vt.code}</@radio>
			</#list><br>
		编辑:<#list Columns.editTypes as vt>
				<@radio f="column.editType" v=vt.value>${vt.code}</@radio>
		</#list><br>
		
		<#if column.ID?exists>
			<@button>保存</@button>
			<@button goto=URL('console/category/column/',column.ID,'/remove')>删除</@button>
		<#else>
			<@button>新增</@button>
		</#if>
	</@form>

</@console>